home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr34 / prexcm55.zip / MARKEXE.DOC < prev    next >
Text File  |  1995-03-22  |  5KB  |  144 lines

  1.                              
  2.                              MarkEXE v2.5
  3.                         Protect! EXE/COM v5.5
  4.                      (C) 1993-1995 Jeremy Lilley
  5.                           All Rights Reserved
  6.  
  7.  
  8.  
  9.  
  10. INTRODUCTION:
  11. -------------
  12.  
  13.         MarkEXE is a simple  utility that  imbeds your copyright
  14. messages at the beginning of any normal EXE file. Simply specify
  15. the executable file  name and the file  containing the copyright
  16. message:
  17.  
  18.                 MarkEXE [ProgName[.EXE]] [Message.Msg]
  19.  
  20.   for example:  MarkEXE MyProg MyProg.Msg
  21.  
  22.         MarkEXE v2.5  was designed to be used with Protect!, but
  23. it can be used on  any normal DOS  executable file (it will work
  24. on a few larger files not  supported by Protect!, and it is even
  25. possible to use on  Windows and OS/2 executables  if you see the
  26. instructions below).  MarkEXE will place the message as close to
  27. the beginning of the  EXE as possible,  which is at byte 32 of a
  28. Protected exectuable. It will try to recover unused header space
  29. first to minimize the file's expansion. It is important that you
  30. run MarkEXE only  *after* and  not before running Protect!  on a
  31. file because Protect! removes MarkEXE messages.  Also, MarkEXE's 
  32. messages  will not be  Protected from  modification by  Protect! 
  33. because they are not loaded into memory when the file is run.
  34.  
  35.  
  36. EXAMPLE:
  37. ________
  38.  
  39.         The  message that  MarkEXE puts in  executable files is
  40. viewable from any command  or program that can look at the file
  41. itself, including the DOS TYPE command and other utilities such
  42. as DiskEdit:
  43.  
  44.                 C:\>TYPE MyProg.EXE
  45.  
  46.                         MyProg (C) 1995 John Doe Enterprises
  47.                         Please read MyProg.DOC for instructions.
  48.                                 John Doe Enterprises
  49.                                 123 Main Street
  50.                                 Anyplace, USA 12345
  51.                                 (123) 456-7890
  52.                                 jdoe@anynet.com
  53.  
  54.  
  55. SUGGESTIONS:
  56. ____________
  57.  
  58.         You may want to add an ANSI clear  screen command  (like
  59. ESC[2J)  at the  beginning  of the  file  to  clear the  display
  60.  
  61.  
  62.                                                                 Page 2
  63.  
  64.  
  65.  
  66. (because MarkEXE can't put the message  until after the first 32
  67. bytes, ridding the screen of garbage,  at least on ANSI systems,
  68. is a good idea).
  69.  
  70.         Also, the message file for MarkEXE is different from the 
  71. modification message file that is used in the registered version
  72. of Protect!,  but they could  conceivably be the  same or almost
  73. the same file.
  74.  
  75.  
  76. WINDOWS / OS/2 EXECUTABLES:
  77. ---------------------------
  78.  
  79.         If you write Windows or OS/2 programs, it is possible to 
  80. add a copyright message with MarkEXE even though  Protect! won't
  81. work on them.  DON'T just try to add the message to the EXE file
  82. (because that will cause problems and conflicts with many of the 
  83. pointers  of  the  Windows / OS/2 portion that  MarkEXE was  not
  84. designed to deal with).  What you need to do  is go back to your
  85. compiler and create a  .DEF file and include it in the program's
  86. project or make-file (if one doesn't already exist).  In the DEF 
  87. file, add a STUB statement:
  88.  
  89.                 STUB    'EXE_STUB.EXE'
  90.  
  91.         Now, create the EXE_STUB.EXE file  (name it whatever you
  92. want)  with a DOS compiler.  This STUB file  is what is executed
  93. when  you try to run a Windows program from DOS.  Normally,  the
  94. compiler defaults to a small program that tells  you to load the
  95. file from  Windows,  but with the STUB command,  you can specify
  96. your own message or even a DOS version of your program. Once you
  97. have created your own EXE_STUB.EXE,  you just use MarkEXE on it,
  98. compile/link  the  Windows  or  OS/2 executable,  and  your  new
  99. message  should appear at the  beginning of the  Windows or OS/2
  100. executable.
  101.  
  102.  
  103. LICENSING:
  104. __________
  105.  
  106.         This program must be distributed with  Protect! EXE/COM
  107. and be  used  under  the same  terms.  You must  register  this 
  108. package before distributing the finished EXE files.  In testing
  109. and using,  you agree  not to  hold the author  responsible for 
  110. damages that may result from the use or misuse of this program.
  111.  
  112.  
  113. CHANGES/PROBLEMS:
  114. _________________
  115.  
  116.         The biggest change between this version and the last is
  117. simply that MarkEXE v2.5 actually works. I had to rewrite it so
  118. that it would work on files needing different amounts of header
  119. space,  something  that was  brushed over  before.  The biggest
  120. problem left that can't be fixed is that if there happens to be
  121. an  ASCII #26 (EOF)  character in the first mandatory bytes  of
  122.  
  123.  
  124.                                                                 Page 3
  125.  
  126.  
  127.  
  128. the EXE header,  the contents  will not be  displayed  with the
  129. TYPE command.
  130.         
  131.  
  132. CONTACT:
  133. ________
  134.  
  135.  
  136.                         Jeremy Lilley
  137.                         Protect! EXE/COM
  138.                         2711 Oakview Circle
  139.                         Medford, Oregon 97504
  140.                         Compuserve: 75060,2074
  141.                         Internet: 75060.2074@compuserve.com
  142.  
  143.  
  144.